package com.example.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName history
 */
@TableName(value ="history")
@Data
public class History implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 书id
     */
    private Integer bookId;

    /**
     * 借阅时间
     */
    private String borrowTime;

    /**
     * 归还时间
     */
    private String returnTime;



    /**
     * 借阅过的次数
     */
    private Integer num;

    private String borrowId;

    /**
     * 为1 用户删除 为2管理员删除
     * 学生查状态0或2    管理员查0或1
     */
    private Integer statusStu;
    private Integer statusAdm;
    private Integer statusCom;
    private Integer statusSpk;

    @TableField(exist = false)
    private String bookName;

    @TableField(exist = false)
    private String nickName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}